SSCF_CPPFILE = SSCF.cpp SSocket.cpp SocketPool.cpp SServer.cpp
SSCF_TARGET = ../../../lib/libsscf.so 
TARGETS = $(SSCF_TARGET)
SSCF_OBJFILE = $(patsubst %.cpp, %.o, $(SSCF_CPPFILE))
CXX = g++
INC_DIR = -I../../../3party/log4cxx/include -I../include -I../../sutil/include 


CXXFLAGS = -g -Wall -O2

.PHONY : all

all: $(TARGETS) 

$(SSCF_TARGET): $(SSCF_OBJFILE)
	        $(CXX) --share $(CXXFLAGS) $^ $(LIBS) -o $@

%.o : %.cpp
	        $(CXX) -c $(CXXFLAGS) $(INC_DIR) $< -o $@

.PHONY : clean

clean:
	        rm -f *.o $(TARGETS)
